/*
 * @Author       : borfish
 * @Date         : 2025-08-08 10:42:03
 * @LastEditors  : borfish
 * @LastEditTime : 2025-08-08 11:28:17
 * @FilePath     : /include/commandcontroller.h
 * @Description  : 
 * Copyright 2025 OBKoro1, All Rights Reserved. 
 * 2025-08-08 10:42:03
 */
#ifndef COMMANDCONTROLLER_H
#define COMMANDCONTROLLER_H

#include <QObject>
#include "include/MqttHandler.h"

class CommandController : public QObject
{
    Q_OBJECT

public:
    explicit CommandController(MQTTHandler *mqttManager, QObject *parent = nullptr);
    
public slots:
    void executeCommand(const QString &command);
    
signals:
    void newMessage(const QString &msg);

private:
    void showHelp();
    
    MQTTHandler *m_mqttManager;
};

#endif // COMMANDCONTROLLER_H